function [ net ] = trainNet( net, trainingPatterns, trainingResults, activationFn, activationDerivate, BETA)
%TRAINNET Summary of this function goes here
%   Detailed explanation goes here

for i = 1 : size(trainingPatterns)
    Vs = feedForward(net, trainingPatterns(i,:), activationFn, BETA);
    net = backPropagation(net, trainingResults(i, :), Vs, activationFn, activationDerivate, BETA);
end

